package Num02_20200228;

public class Num02_20200228 {
    public static void main(String[] args) {
        chooseNum();
    }

    private static void chooseNum() {
        int bit = 0;
        int ten_bit = 0;
        int hundred_bit = 0;

        for(int i=100;i<=999;i++){
            bit = i % 10;
            ten_bit = i / 10 % 10;
            hundred_bit = i / 100;
            if(i == bit*bit*bit+ten_bit*ten_bit*ten_bit+hundred_bit*hundred_bit*hundred_bit){
                System.out.print(i+",");
            }
        }
    }
}
